--
-- @Author:      name
-- @DateTime:    2019-11-04 23:05:48
-- @Description: 数据库管理

local skynet = require "skynet"
local cjson = require("cjson")


local MessageHandler = class("MessageHandler")

---------------------------------------------------------
-- Private
---------------------------------------------------------
function MessageHandler:ctor(message_dispatch)
	self.message_dispatch = message_dispatch

	
	self:register()
end

function MessageHandler:register()
	self.message_dispatch:registerSelf('start', handler(self, self.start))
end


----------------------------------------------------------------------
--CMD
----------------------------------------------------------------------
function MessageHandler:start()
	debug_log("__manager___________start____")

	for i=1, 1 do 
		local worker = skynet.newservice("worker_service")
		skynet.call(worker, "lua", "start")
	end

end






return MessageHandler